/**
 * 
 */
package belote.service.user;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author Gwenn
 */
public class User {

	// ------------------------------------------------------------------------
	// ATTRIBUTS
	// ------------------------------------------------------------------------

	private long _id;

	private String _login;

	private String _password;

	private String _email;

	private Genre _genre;

	private Date _creationDate;

	private Date _lastModificationDate;

	private Date _lastConnectionDate;

	// ------------------------------------------------------------------------
	// CONSTRUCTEUR
	// ------------------------------------------------------------------------

	public User() {
	}

	// ------------------------------------------------------------------------
	// METHODES 'PUBLIC'
	// ------------------------------------------------------------------------

	@Override
	public String toString() {

		ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
		tsb.append("id", getId());
		tsb.append("login", getLogin());
		tsb.append("email", getEmail());
		return tsb.toString();
	}

	// ------------------------------------------------------------------------
	// GETTERS & SETTERS
	// ------------------------------------------------------------------------

	public void setId(long pId) {
		this._id = pId;
	}

	public long getId() {
		return this._id;
	}

	public void setLogin(String pLogin) {
		this._login = pLogin;
	}

	public String getLogin() {
		return this._login;
	}

	public void setPassword(String pPassword) {
		this._password = pPassword;
	}

	public String getPassword() {
		return this._password;
	}

	public void setEmail(String pEmail) {
		this._email = pEmail;
	}

	public String getEmail() {
		return this._email;
	}

	public void setGenre(Genre pGenre) {
		this._genre = pGenre;
	}

	public Genre getGenre() {
		return this._genre;
	}

	public void setCreationDate(Date pCreationDate) {
		this._creationDate = pCreationDate;
	}

	public Date getCreationDate() {
		return this._creationDate;
	}

	public void setLastModificationDate(Date pLastModificationDate) {
		this._lastModificationDate = pLastModificationDate;
	}

	public Date getLastModificationDate() {
		return this._lastModificationDate;
	}

	public void setLastConnectionDate(Date pLastConnectionDate) {
		this._lastConnectionDate = pLastConnectionDate;
	}

	public Date getLastConnectionDate() {
		return this._lastConnectionDate;
	}
}
